<template>
	<view class="page">
		<web-view :src="httpurl"></web-view>
		<!-- sadasas -->



	</view>
</template>

<script>
	import {
		getAgreementData,
	} from '@/config/api.js';
	export default {
		data() {
			return {
				httpurl: '',

			};
		},

		onLoad(options) {
			// 获取传递过来的标题
			// console.log('jsjsj', options)
			getAgreementData({
				contract_id: options.id
			}).then(res => {
				this.httpurl = res;
			})


		},
		methods: {}
	}
</script>

<style scoped>
	.form {

		padding: 0 20rpx;

	}

	.title {
		width: 100%;
		height: 80rpx;
		line-height: 80rpx;
		align-items: center;
		background-color: #ffebeb;
		color: red;
		padding: 0 20rpx;
	}


	.container {
		position: fixed;
		bottom: 0rpx;
		margin-top: auto;
		padding: 20rpx;
		display: flex;
		flex-direction: column;
		align-items: center;

	}

	.item {
		display: flex;
		justify-content: center;
		align-items: center;
		margin-bottom: 20rpx;
	}

	.text1 {
		color: #d1a969;
	}


	.container .custom-button {
		width: 96%;
		height: 80rpx;
		text-align: center;
		line-height: 80rpx;
		background-color: #d1a969;
		/* 设置按钮的背景颜色 */
		color: #fff;
		border-radius: 50rpx;
	}
</style>